package com.wave.system.domain.bo;

import com.wave.common.core.domain.BaseEntity;
import com.wave.common.core.validate.AddGroup;
import com.wave.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 设备状态业务对象 sys_device_status
 *
 * @author wave
 * @date 2024-10-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysDeviceStatusBo extends BaseEntity {

    private static final long serialVersionUID = -5470142246665198198L;
    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 设备名称
     */
    @NotBlank(message = "设备名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceName;

    /**
     * 设备状态 0-正常，1-异常
     */
    @NotNull(message = "设备状态 0-正常，1-异常不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer deviceStatus;

    /**
     * 异常原因
     */
    @NotBlank(message = "异常原因", groups = { AddGroup.class, EditGroup.class })
    private String abnormalCause;


}
